package Interface.InterfaceDome002;

/**
 * ClassName:Text
 * Package:Interface.InterfaceDome002
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/25-11:38
 * @Version:v1.0
 */
public class Text {
    public static void main(String[] args) {
        Dog d = new Dog("修狗",3);
        System.out.println(d.getName()+" "+d.getAge()+"岁");
        d.eat();
        d.swim();
    }
}
